package com.example.pet.dao;

import com.hj.pet.model.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserDao {
    @Select("select * from user where user_account = #{userAccount} and user_pwd = #{userPwd}")
    User doLogin(String userAccount,String userPwd);

    @Insert("insert into user(user_account,user_pwd) values(#{userAccount},#{userPwd})")
    int register(String userAccount,String userPwd);

}
